package com.berchen.数据结构.队列;

public class RiingsArrayQueueTest {
    public static void main(String[] args) {

        RingsArrayQueue queue = new RingsArrayQueue(4);
        System.out.println(queue.add(1));
        System.out.println(queue.add(2));
        System.out.println(queue.add(3));
        System.out.println(queue.add(4));

        queue.list();

        System.out.println( queue.get());
        System.out.println(queue.remove());

        queue.list();

        queue.add(5);
        queue.list();

    }
}
